#include<iostream>
#include<unistd.h>
#include<vector>
#include"Processpool.hpp"
#include"Channel.hpp"
#include"Task.hpp"
#include <sys/wait.h>
#include <functional>
#include<time.h>


int main(int argc,char*argv[])
{
    srand(time(nullptr));
    if(argc!=2)
    {
        std::cout<<"Usage error:main 2"<<std::endl;
        return 1;
    }
    int n=0;
    sscanf(argv[1],"%d",&n);

    processpool ppool(n);

    ppool.AssignTask();
    
    return 0;
}

